#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "hitten.h"
#include <QKeyEvent>

int state[5]={};

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{

    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_pushButton_1_clicked()
{
        QPixmap zou(ic1.NextImage());
        state[0]=ic1.index;
        ui->p1->setPixmap(zou);
        ui->p1->show();
}

void MainWindow::on_pushButton_3_clicked()
{
    QPixmap zou(ic2.NextImage());
    state[1]=ic2.index;
    ui->p2->setPixmap(zou);
    ui->p2->show();
}

void MainWindow::on_pushButton_5_clicked()
{
    QPixmap zou(ic3.NextImage());
    state[2]=ic3.index;
    ui->p3->setPixmap(zou);
    ui->p3->show();
}

void MainWindow::on_pushButton_clicked()
{
    QPixmap zou(ic4.NextImage());
    state[3]=ic4.index;
    ui->p4->setPixmap(zou);
    ui->p4->show();
}

void MainWindow::on_pushButton_2_clicked()
{
    QPixmap zou(ic5.NextImage());
    state[4]=ic5.index;
    ui->p5->setPixmap(zou);
    ui->p5->show();
}
